import mysql.connector


def db_connector():
    # 连接到MySQL数据库
    mydb = mysql.connector.connect(
      host="123.57.228.245",
      user="palworld",
      password="eyDE7eFCxB8bJPBK",
      database="palworld"
    )
    # 创建一个游标对象
    return mydb
